<!-- BEGIN newslist -->
<table>
	<colgroup>
		<col style="width: 35%;" />
		<col style="width: 45%;" />
		<col style="width: 10%;" />
		<col style="width: 10%;" />
	</colgroup>
	<thead>
		<tr>
			<th>{wCOLNAME}</th>
			<th>{wCODE}</th>
			<th>{wEDIT}</th>
			<th>{wDELETE}</th>
		</tr>
	</thead>
	<tbody>
		<!-- BEGIN listnewslist -->
		<tr>
			<td>{LNAME}</td>
			<td class="wgcode">{#MOD_news_list_{LIDENTIFIER}}</td>
			<td>{EDITROW}</td>
			<td>{DELETEROW}</td>
		</tr>
		<!-- END listnewslist -->
	</tbody>
</table>
{DATAPAGER}
<form action="{ACTION}" method="post">
	<p><input name="new" type="submit" value="{wCREATENEW}" /></p>
</form>
<form action="{ACTION}" method="post">
	<fieldset><legend>{wEDIT}</legend>
		<p class="topbuttons">
			<input name="reset" type="reset" value="{wRESET}" />
			<input name="apply" type="submit" value="{wAPPLY}" />
			<input name="submit" type="submit" value="{wSAVE}" />
		</p>
		<p>
			<label>{wCOLNAME}:</label>
			<input name="name" id="name" type="text" value="{COLNAME}" />
		</p>
		<p>
			<label>{wCOLIDENTIFIER}:</label>
			<input name="identifier" id="identifier" type="text" value="{COLIDENTIFIER}" />
		</p>
		<p>
			<label>{wCOLDATASOURCE}:</label>
			{FULLDATASOURCE}
		</p>
		<p id="listCatId">
			<label>{wPREDCATID}:</label>
			{FULLCATID}
		</p>
		<p>
			<label>{wCOLPERPAGE}:</label>
			<input name="perpage" id="perpage" type="text" value="{COLPERPAGE}" />
		</p>
		<p>
			<label>{wCOLTEMPBEGIN}:</label>
			<textarea cols="50" rows="9" name="tempbegin" id="tempbegin" class="html small">{COLTEMPBEGIN}</textarea>
		</p>
		<p>
			<label>{wCOLTEMPITEM}:</label>
			<textarea cols="50" rows="9" name="tempitem" id="tempitem" class="html">{COLTEMPITEM}</textarea>
		</p>
		<p>
			<label>{wCOLTEMPEND}:</label>
			<textarea cols="50" rows="9" name="tempend" id="tempend" class="html small">{COLTEMPEND}</textarea>
		</p>
		<p>
			<label>{wCOLNOTEMP}:</label>
			<textarea cols="50" rows="9" name="notemp" id="notemp" class="html">{COLNOTEMP}</textarea>
		</p>
		<p class="bottombuttons">
			<input name="temptype" type="hidden" value="0" />
			<input name="edit" type="hidden" value="{COLID}" />
			<input name="act" type="hidden" value="{ACTIONNAME}" />
			<input name="reset" type="reset" value="{wRESET}" />
			<input name="apply" type="submit" value="{wAPPLY}" />
			<input name="submit" type="submit" value="{wSAVE}" />
		</p>
	</fieldset>
</form>
<script type="text/javascript">
<!--
$(document).ready( function() {
	$('#listDataSource').click( function() {
		if (this.value == 2 || this.value == 3) $('#listCatId').show();
		else $('#listCatId').hide();
	});
	if ($('#listDataSource').val() == 2 || $('#listDataSource').val() == 3) $('#listCatId').show();
	else $('#listCatId').hide();
});
-->
</script>
<!-- END newslist -->

<!-- BEGIN newsdetails -->
<table>
	<colgroup>
		<col style="width: 35%;" />
		<col style="width: 45%;" />
		<col style="width: 10%;" />
		<col style="width: 10%;" />
	</colgroup>
	<thead>
		<tr>
			<th>{wCOLNAME}</th>
			<th>{wCODE}</th>
			<th>{wEDIT}</th>
			<th>{wDELETE}</th>
		</tr>
	</thead>
	<tbody>
		<!-- BEGIN listnewsdetails -->
		<tr>
			<td>{LNAME}</td>
			<td class="wgcode">{#MOD_news_detail_{LIDENTIFIER}}</td>
			<td>{EDITROW}</td>
			<td>{DELETEROW}</td>
		</tr>
		<!-- END listnewsdetails -->
	</tbody>
</table>
{DATAPAGER}
<form action="{ACTION}" method="post">
	<p><input name="new" type="submit" value="{wCREATENEW}" /></p>
</form>
<form action="{ACTION}" method="post">
	<fieldset><legend>{wEDIT}</legend>
		<p class="topbuttons">
			<input name="reset" type="reset" value="{wRESET}" />
			<input name="apply" type="submit" value="{wAPPLY}" />
			<input name="submit" type="submit" value="{wSAVE}" />
		</p>
		<p>
			<label>{wCOLNAME}:</label>
			<input name="name" id="name" type="text" value="{COLNAME}" />
		</p>
		<p>
			<label>{wCOLIDENTIFIER}:</label>
			<input name="identifier" id="identifier" type="text" value="{COLIDENTIFIER}" />
		</p>
		<p>
			<label>{wCOLDATASOURCE}:</label>
			{FULLDATASOURCE}
		</p>
		<p id="detCatId">
			<label>{wPREDCATID}:</label>
			{FULLCATID}
		</p>
		<p id="detArtId">
			<label>{wSELARTICLEID}:</label>
			<input name="addid" id="addid" type="text" value="{COLADDID}" />
		</p>
		<p>
			<label>{wCOLTEMPITEM}:</label>
			<textarea cols="50" rows="9" name="tempitem" id="tempitem" class="html">{COLTEMPITEM}</textarea>
		</p>
		<p>
			<label>{wCOLNOTEMP}:</label>
			<textarea cols="50" rows="9" name="notemp" id="notemp" class="html">{COLNOTEMP}</textarea>
		</p>
		<p class="bottombuttons">
			<input name="temptype" type="hidden" value="1" />
			<input name="edit" type="hidden" value="{COLID}" />
			<input name="act" type="hidden" value="{ACTIONNAME}" />
			<input name="reset" type="reset" value="{wRESET}" />
			<input name="apply" type="submit" value="{wAPPLY}" />
			<input name="submit" type="submit" value="{wSAVE}" />
		</p>
	</fieldset>
</form>
<script type="text/javascript">
<!--
$(document).ready( function() {
	$('#detDataSource').click( function() {
		var val = this.value;
		setDetailDS(val);
	});
	var val = $('#detDataSource').val();
	setDetailDS(val);
});
function setDetailDS(val) {
	if (val == 3 || val == 5) {
		$('#detCatId').show();
		$('#detCatId select').attr('disabled', null);
		$('#detArtId').hide()
		$('#detArtId input').attr('disabled', 'disabled');
	}
	else {
		$('#detCatId').hide();
		$('#detCatId select').attr('disabled', 'disabled');
		$('#detArtId input').attr('disabled', null);
		if (val == 1) $('#detArtId').show()
		else {
			$('#detArtId').hide()
			$('#detArtId input').attr('disabled', null);
		}
	}
}
-->
</script>
<!-- END newsdetails -->

<!-- BEGIN categorieslist -->
<table>
	<colgroup>
		<col style="width: 35%;" />
		<col style="width: 45%;" />
		<col style="width: 10%;" />
		<col style="width: 10%;" />
	</colgroup>
	<thead>
		<tr>
			<th>{wCOLNAME}</th>
			<th>{wCODE}</th>
			<th>{wEDIT}</th>
			<th>{wDELETE}</th>
		</tr>
	</thead>
	<tbody>
		<!-- BEGIN listcategorieslist -->
		<tr>
			<td>{LNAME}</td>
			<td class="wgcode">{#MOD_news_catlist_{LIDENTIFIER}}</td>
			<td>{EDITROW}</td>
			<td>{DELETEROW}</td>
		</tr>
		<!-- END listcategorieslist -->
	</tbody>
</table>
{DATAPAGER}
<form action="{ACTION}" method="post">
	<p><input name="new" type="submit" value="{wCREATENEW}" /></p>
</form>
<form action="{ACTION}" method="post">
	<fieldset><legend>{wEDIT}</legend>
		<p class="topbuttons">
			<input name="reset" type="reset" value="{wRESET}" />
			<input name="apply" type="submit" value="{wAPPLY}" />
			<input name="submit" type="submit" value="{wSAVE}" />
		</p>
		<p>
			<label>{wCOLNAME}:</label>
			<input name="name" id="name" type="text" value="{COLNAME}" />
		</p>
		<p>
			<label>{wCOLIDENTIFIER}:</label>
			<input name="identifier" id="identifier" type="text" value="{COLIDENTIFIER}" />
		</p>
		<p>
			<label>{wCOLDATASOURCE}:</label>
			{FULLDATASOURCE}
		</p>
		<p id="catCatId">
			<label>{wPREDCATID}:</label>
			{FULLCATID}
		</p>
		<p>
			<label>{wCOLPERPAGE}:</label>
			<input name="perpage" id="perpage" type="text" value="{COLPERPAGE}" />
		</p>
		<p>
			<label>{wCOLTEMPBEGIN}:</label>
			<textarea cols="50" rows="9" name="tempbegin" id="tempbegin" class="html small">{COLTEMPBEGIN}</textarea>
		</p>
		<p>
			<label>{wCOLTEMPITEM}:</label>
			<textarea cols="50" rows="9" name="tempitem" id="tempitem" class="html">{COLTEMPITEM}</textarea>
		</p>
		<p>
			<label>{wCOLTEMPEND}:</label>
			<textarea cols="50" rows="9" name="tempend" id="tempend" class="html small">{COLTEMPEND}</textarea>
		</p>
		<p>
			<label>{wCOLNOTEMP}:</label>
			<textarea cols="50" rows="9" name="notemp" id="notemp" class="html">{COLNOTEMP}</textarea>
		</p>
		<p class="bottombuttons">
			<input name="temptype" type="hidden" value="2" />
			<input name="edit" type="hidden" value="{COLID}" />
			<input name="act" type="hidden" value="{ACTIONNAME}" />
			<input name="reset" type="reset" value="{wRESET}" />
			<input name="apply" type="submit" value="{wAPPLY}" />
			<input name="submit" type="submit" value="{wSAVE}" />
		</p>
	</fieldset>
</form>
<script type="text/javascript">
<!--
$(document).ready( function() {
	$('#catDataSource').click( function() {
		if (this.value == 2 || this.value == 3) $('#catCatId').show();
		else $('#catCatId').hide();
	});
	if ($('#catDataSource').val() == 2 || $('#catDataSource').val() == 3) $('#catCatId').show();
	else $('#catCatId').hide();
});
-->
</script>
<!-- END categorieslist -->

